package com.woniuxy.bean;

public class Teacher {
    private String name;
    public void setName(String name) {
        this.name = name;
    }
    public Teacher() {
        System.out.println("实例化方法");
    }
    public void init(){
        System.out.println("初始化方法");
    }
    public void destory(){
        System.out.println("销毁方法");
    }
    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                '}';
    }
}
